import request from '@/utils/request'
// 获取图片验证码
export const getImg = () => {
  return request.get('/captcha/image')
}
// 获取手机号验证码
export const getCode = (obj) => {
  return request.post('/captcha/sendSmsCaptcha', {
    form: {
      captchaCode: obj.captchaCode,
      captchaKey: obj.captchaKey,
      mobile: obj.mobile
    }
  })
}
// 登录接口
export const LoginIn = (obj) => {
  return request.post('/passport/login', {
    form: {
      isParty: false,
      mobile: obj.mobile,
      partyData: {},
      smsCode: obj.smsCode
    }
  })
}
